package com.auth.test.generator.pojo;

import com.auth.test.generator.pojo.BaseEnabled;
import com.easyCode.sqlBuilder.constants.DefaultValConstants;
import com.easyCode.sqlBuilder.constants.KeyTypeConstants;
import com.easyCode.sqlBuilder.oop.Filed;
import com.easyCode.sqlBuilder.oop.Key;
import com.easyCode.sqlBuilder.oop.Table;

import java.time.LocalDateTime;

/**
 * @author 大忽悠
 * @create 2023/2/8 21:09
 */
@Table(comment = "用户表")
public class User extends BaseEnabled {
   @Filed(filedLen = "50",comment = "用户名")
   @Key(keyType = KeyTypeConstants.KEY)
   private String username;
   @Filed(filedLen = "50",notNull = false,comment = "业务名(认证中心存储多种用户类型时,防止出现用户名重复情况,可以通过用户所属业务名加以区分)")
   private String serviceName;
   @Filed(defaultVal = DefaultValConstants.CURRENT_TIMESTAMP,comment = "创建时间")
   private LocalDateTime createTime;
   @Filed(defaultVal = DefaultValConstants.CURRENT_TIMESTAMP,comment = "更新时间")
   private LocalDateTime updateTime;
}
